Skip to content

feat(auth): make Home page public, keep app pages behind SSO - #12

Merged
coko7 merged 1 commit into
mainfrom
feat/public-pages
Nov 13, 2026
Merged

coko7 merged 1 commit into
mainfrom
feat/public-pages

Conversation

@coko7

@coko7 coko7 commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Watari can now be browsed without logging in: /home and /decrypt are
public, and / redirects anonymous visitors to /home instead of the SSO
login (signed-in users still get the dashboard there, so URLs are
unchanged). Upload, paste, shorten, dashboard, admin and every /api/*
route still require a session.

Anonymous visitors get a reduced sidebar (Home, Decrypt) with a "Log
in" button, and the Home page shows a "Log in with SSO" call to action.
Public handlers take Option through a shared
pages::public_layout helper, so signed-in users keep their full
sidebar on those pages.

Co-Authored-By: lazytrek 352825308+lazytrek@users.noreply.github.com

Watari can now be browsed without logging in: /home and /decrypt are
public, and / redirects anonymous visitors to /home instead of the SSO
login (signed-in users still get the dashboard there, so URLs are
unchanged). Upload, paste, shorten, dashboard, admin and every /api/*
route still require a session.

Anonymous visitors get a reduced sidebar (Home, Decrypt) with a "Log
in" button, and the Home page shows a "Log in with SSO" call to action.
Public handlers take Option<UserSession> through a shared
pages::public_layout helper, so signed-in users keep their full
sidebar on those pages.

Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
@coko7
coko7 merged commit 81680d8 into main Nov 13, 2026
3 checks passed
@coko7
coko7 deleted the feat/public-pages branch November 13, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant